import request from '@/utils/request'

export function getTeacherSchedules(params) {
  return request({
    method: 'get',
    url: 'teacher/schedules',
    params
  })
}

export function updateClassSchedule(params) {
  return request({
    method: 'post',
    url: 'class/updateClassSchedule',
    data: params
  })
}

export function getClassSchdule(params) {
  return request({
    method: 'get',
    url: 'class/schedules',
    params
  })
}

export function getStudentSchedule(params) {
  return request({
    method: 'get',
    url: 'student/schedules',
    params
  })
}

export function changeScheduleReq(params) {
  return request({
    method: 'post',
    url: 'schedule/change',
    data: params
  })
}

export function applySchedule(params) {
  return request({
    method: 'post',
    url: 'class/applySchedule',
    data: params
  })
}
